package com.ebei.admin.service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ebei.admin.model.dto.OrgRoleDTO;
import com.ebei.admin.model.dto.OrgRoleUserDTO;
import com.ebei.admin.model.entity.SysOrgRole;
import com.ebei.common.util.Query;

import java.util.List;

/**
 * 岗位服务接口
 */
public interface PositionService extends IService<SysOrgRole> {

    /**
     * 根据组织id获取岗位列表
     * @param orgId
     * @return
     */
    List<OrgRoleDTO> selectPositionsByOrgId(Integer orgId);

    /**
     * 删除岗位
     * @param positionId
     * @return
     */
    Boolean delPosition(Integer positionId);

    /**
     * 根据岗位id获取成员
     * @param objectQuery
     * @return
     */
    Page selectUsersByPositionId(Query<OrgRoleUserDTO> objectQuery);

}
